<?php

    $mikron->Page->StartBody();
    echo '{{MIKRON_REGISTRATION}}';
    return $mikron->Page->EndBody();

    $frm1 = new html_form('regform', 'post', $_SERVER['REQUEST_URI']);
    $needform = true;
    if($frm1->pageindex > 1)
    {
        $cardnumber = $frm1->formdata['cardnumber'];
        global $mikron;
        $dataObject = new DataObject('check_registration_card');
        $dataObject->SetString('number');
        $result = $mikron->Site->Soap->Call(null, $dataObject);
        if($result instanceof MikronException)
        {
        }
        else
        {
            $frm1->end(true);
            $needform = false;
            $reg_info = new T_REGINFO();
            $reg_info->cardnumber->value = $cardnumber;
            echo '<h1>Регистрация (2 шаг из 2):</h1>'; // echo '{{MIKRON_REGISTRATION}}';
            $mikron->EntityManager->ShowFormForUsers($reg_info, true, true, true, '/reg/?ok', false, $_SERVER['REQUEST_URI'], null, 'regform', null, null, '/reg/?error', null, 1);
        }
    }

    if($needform)
    {
        echo '<h1>Регистрация (1 шаг из 2):</h1>'; // echo '{{MIKRON_REGISTRATION}}';
        $tab1 = new html_table(1, null, null, 8, 0, null);
            $tab1->newcol();
                echo 'Номер регистрационной карты:<br /> ';
                $frm1->addInput(1, 'cardnumber', null, 28, 16);
            $tab1->newcol();
                $frm1->addCaptcha();
            $tab1->newcol();
                $frm1->addSubmit('entercardnumber', 'Далее');
        $tab1->end();
        $frm1->end();
    }

    $mikron->Page->EndBody();

?>

